#include<bits/stdc++.h>
#define ll long long
#define ull unsigned long long
using namespace std;

const ll N = 1e6 + 10, INF = 0x3f3f3f3f;

ll n;
pair<ll, ll> a[N];

bool check(ll p, ll q)
{
    if (p == q) return 0;
    ll A = a[q].second - a[p].second;
    ll B = a[p].first - a[q].first;
    ll C = a[q].first * a[p].second - a[p].first * a[q].second;
    ll cnt = 0;
    for (ll i = 0;i < n;i++)
        if (A * a[i].first + B * a[i].second + C == 0) cnt++;
    if (cnt > n / 2) {
        cout << "Yes\n";
        cout << A << ' ' << B << ' ' << C << '\n';
        return 1;
    }
    return 0;
}

void solve()
{
    cin >> n;
    for (ll i = 0;i < n;i++)  cin >> a[i].first >> a[i].second;

    mt19937 rd(time(NULL));
    ll cnt = 100;
    while (cnt--) if (check(rd() % n, rd() % n)) return;
    cout << "No\n";
}

signed main()
{
    //ios::sync_with_stdio(0);
    //cin.tie(0);cout.tie(0);
#define ONLINE_JUDGE
#ifndef ONLINE_JUDGE
    std::istringstream in(R"()");
    std::cin.rdbuf(in.rdbuf());
#endif
    ll T = 1;
    //cin>>T;
    for (ll i = 1;i <= T;i++) {
        solve();
    }
}